-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rollup-config-added #34
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start.
Let’s address these points below:
rollup.config.js
Outdated
const createUmd = process.env.CREATE_UMD === "true"; | ||
const input = "src/index.js"; // Update with your entry point | ||
const outputDir = "build"; // Update with your desired output directory | ||
const name = "Cytposcape"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ought to be the package name of the extension, i.e. cytoscape-automove.
|
I have published the package on npm test. Please let me know what should be my next move. |
Some notes re. It looks like the new build files are not included in your package. See: foxtrot-test % ls node_modules/cytoscape.js-automove-foxtrot
LICENSE bower.json demo-multiple-mean.html package.json src
README.md cytoscape-automove.js demo.html rollup.config.js webpack.config.js The npm script targets for
The
The dependencies or the build configuration look like they need to be updated. From a clean
|
Note:
|
All the point above have been addressed and a fresh package has been published...fingers crossed. |
Please check. |
Let's expedite the review with some testing homework for you: (1) Create a new node project, i.e. npm init, and verify you can import and require your package. Both should work. (2) Create a react project using the create-react-project scaffolder. Import your package. Verify it works. Do the same for require. (3) Create a new html file. Use import to pull in your package. Verify it works with no build system. (4) Do the same as (3) for another html file, this time with the UMD build. Verify it works with old-fashioned globals. You can put these tests on jsbin or codebin so that other people can inspect them afterwards. Looking forward to your next update. |
Hello, the import works fine no errors encountered. But, I am unable to get the cytoscape variable to use an extension. Could you please provide a code snippet where the extension is used both in vanilla HTML and React. Other than that the package is ready to be used. |
The demo is this repo is an example of globals. For react, you can search github and find lots of examples. |
Ok, the html file works well. For react i could find examples that used cytoscape but i couldn't find examples using extensions along with them. |
Search for a particular extension and react, rather than cytoscape and react. In any case, it's just the import pattern rather than the globals one. |
Tests done, I tried using JSBin or CodePen but looked like it would be better to post these on github itself. |
@Foxtrot-14, here is some feedback regarding your current test files: HTML
NPM:
React:
Looking forward to your updates |
OK, |
You should use an assertion, not a console statement. E.g.
You can think of other, more specific assertions to confirm further.
|
Ok, I have set rules in the react project and it works fine, for the npm part, I get assertion failed for cytoscape.automove but it works fine if I assert them individually. |
It should be |
Ok, both(import and require) assertions have passed, and HTML files are also working fine. Please check the react project and let me know if it works well. Happy Holidays. |
I'll look into the update soon, and I'll post feedback in this thread. |
Notes:
|
All four points have been addressed. |
Hello, thank you for your patience and insight throughout the whole process, I intend to finish my work on this issue by the end of March, and solve issue 235 as my GSOC 2024 internship. So, the solution of this issue will add more weight on my proposal overall. Please assign the issue to me so I can work on all the extensions by March. |
Hello, if everything is fine, then please let me know so I can start working on all the extensions one by one. |
@maxkfranz Please merge the PR. |
I started trying out your tests: https://github.com/Foxtrot-14/Test-automove.git The npm-import case is failing:
The npm-require example is failing in the same way. I didn't bother trying the React tests, since the npm cases are failing. Please update your tests and verify that all cases are working as expected. I'll review once that's complete. |
The assertion was to check if the object was null, the assertion failing means that the object is not null, If you were to check the react project you'd see that the extension is working fine in there. Anyway I have updated the assertion for better understanding. |
I've added some comments, attached to the code. Assertions should be like this: assert(whatIThinkShouldBeTrue);
console.log('Everything worked OK, otherwise the above line would throw an error.'); Make sense? See also: |
I don't understand. Added comments where exactly...? |
Ok the assertion syntax is fixed. Let me know what more is to be done. |
What about all the other comments in the review? |
All are old and already addressed. |
All of the remaining comment threads are unaddressed. Only the addressed ones have been closed. |
I just hadn't marked them as resolved. I have read all the comments and resolved them as well. |
If all is good, please merge the PR. |
This issue has been automatically marked as stale, because it has not had activity within the past 30 days. It will be closed if no further activity occurs within the next 30 days. If a feature request is important to you, please consider making a pull request. Thank you for your contributions. |
All the issues have been addressed. |
I wanna finish what I started regardless of whether I got into GSoC or not. |
Pull Request Description
Summary:
This pull request addresses the issue 223 on NRNB's official repository for GSOC issues.
Changes Made:
Testing:
Additional Comments: